package com.srlg.liteflow.config;

import com.yomahub.liteflow.flow.element.Chain;
import com.yomahub.liteflow.lifecycle.PostProcessChainBuildLifeCycle;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class TestChainLifeCycle implements PostProcessChainBuildLifeCycle {
    @Override
    public void postProcessBeforeChainBuild(Chain chain) {
        //do something
        log.info("=================> start");
    }

    @Override
    public void postProcessAfterChainBuild(Chain chain) {
        //do something
        log.info("=================> end");
    }
}
